import {View, StyleSheet, Image, Text} from 'react-native'
import noData from '../assets/img/nodata.png'
export default ({text="暂无数据"}) => {
    const styles=StyleSheet.create({
        root: {
            height: '100%',
            width: '100%',
            justifyContent: 'center',
            alignItems: 'center',
        },
        img: {
            width: 120,
            height: 110
        },
        text: {
            marginTop: 10,
            fontSize: 16,
            color: '#A1A1AC'
        }
    })
    return <View style={styles.root}>
        <Image source={noData} style={styles.img}></Image>
        <Text style={styles.text}>{text}</Text>
    </View>
}